package com.hp.controller;

import com.hp.annotation.CheckRepeatSubmit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hp
 */
@Slf4j
@RestController
@RequestMapping("/com/hp/")
public class MyController {


    @CheckRepeatSubmit(expires = 60)
    @PostMapping("test")
    public void test() {
        System.out.println("test");
    }
}
